﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QLChiTieu.Entity
{
    class DanhSach
    {
        private List<ChiTieu> _thuNhap;
        private List<ChiTieu> _tieuXai;
        private DateTime _thang;

        public List<ChiTieu> thuNhap
        {
            get { return _thuNhap; }
            set { _thuNhap = value; }
        }
        public List<ChiTieu> tieuXai
        {
            get { return _tieuXai; }
            set { _tieuXai = value; }
        }
        public DateTime thang
        {
            get { return _thang; }
            set { _thang = value; }
        }

        public long TinhTongThuNhap()
        {
            long tong = 0;
            foreach (ChiTieu x in this._thuNhap)
            {
                tong += tong;
            }
            return tong;
        }
        public long TinhTongTieuXai()
        {
            long tong = 0;
            foreach (ChiTieu x in this._tieuXai)
            {
                tong += tong;
            }
            return tong;
        }
        public long TinhTienConDu()
        {
            long tong = 0;
            foreach (ChiTieu x in this._tieuXai)
            {
                tong += tong;
            }
            return tong;
        }
    }
}
